const cache = new Map();

const CURRENT_ROUTE_HASH_KEY = 'CurrentRouteHash';

export const checkCurrentRoute = () => {
  const hash = window.location.hash;

  if (cache.get(CURRENT_ROUTE_HASH_KEY) !== hash) {
    cache.clear();
    cache.set(CURRENT_ROUTE_HASH_KEY, hash);
  }
};




export default cache;
